<template>
  <div id="userLayout" :class="['user-layout-wrapper', device]">
    <!--<div class="container">-->
      <!--<div class="top">-->
        <!--<div class="header">-->
    <div id="wrapper">
      <div id="left">
        <div class="content">
          <!--<a href="/">-->
            <!--&lt;!&ndash;<img src="~@/assets/logo.svg" class="logo" alt="logo">&ndash;&gt;-->
            <!--<span class="title">Smart Aviator</span>-->
          <!--</a>-->
          <div class="layadmin-user-login-box layadmin-user-login-header">
            <img src="@/assets/go.png" alt="">
            <!--<h2>Smart Aviator</h2>-->
          </div>
        <!--</div>-->
      <!--</div>-->

      <route-view></route-view>
         </div>
        </div>
      <!--<div class="footer">-->
      <!--<div class="links">-->
        <!--<a href="http://ismart-portal.nipponpaint.com.cn:9000/Home" target="_blank">数据资产目录</a>-->
      <!--</div>-->
      <!--<div class="copyright">-->
        <!--Copyright-->
        <!--<a-icon type="copyright"/>-->
        <!--2024 <span>立邦中国</span>-->
      <!--</div>-->
      <!--</div>-->
    <!--</div>-->
      <div id="right">
        <div>
          <h2>企业级知识库管理平台</h2>
          <p style=" vertical-align: bottom;">Copyright © 2024 Infoclue Studio. All Rights Reserved.</p>
        </div>
      </div>
  </div>
 </div>
</template>

<script>
  import RouteView from "@/components/layouts/RouteView"
  import { mixinDevice } from '@/utils/mixin.js'

  export default {
    name: "UserLayout",
    components: { RouteView },
    mixins: [mixinDevice],
    data () {
      return {}
    },
    mounted () {
      document.body.classList.add('userLayout')
    },
    beforeDestroy () {
      document.body.classList.remove('userLayout')
    },
  }
</script>

<style lang="less" scoped>
  #userLayout.user-layout-wrapper {
    height: 100%;
    background: #f0f2f5;


    &.mobile {
      .container {
        .main {
          max-width: 368px;
          width: 98%;
        }
      }
    }

    .container {
      width: 100%;
      min-height: 100%;
      background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
      background-size: 100%;
      padding: 110px 0 144px;
      position: relative;

      a {
        text-decoration: none;
      }

      .top {
        text-align: center;

        .header {
          height: 44px;
          line-height: 44px;

          .badge {
            position: absolute;
            display: inline-block;
            line-height: 1;
            vertical-align: middle;
            margin-left: -12px;
            margin-top: -10px;
            opacity: 0.8;
          }

          .logo {
            height: 44px;
            vertical-align: top;
            margin-right: 16px;
            border-style: none;
          }

          .title {
            font-size: 33px;
            color: rgba(0, 0, 0, .85);
            font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
            font-weight: 600;
            position: relative;
            top: 2px;
          }
        }
        .desc {
          font-size: 14px;
          color: rgba(0, 0, 0, 0.45);
          margin-top: 12px;
          margin-bottom: 40px;
        }
      }

      .main {
        min-width: 260px;
        width: 368px;
        margin: 0 auto;
      }

      .footer {
        position: absolute;
        width: 100%;
        bottom: 0;
        padding: 0 16px;
        margin: 48px 0 24px;
        text-align: center;

        .links {
          margin-bottom: 8px;
          font-size: 14px;
          a {
            color: rgba(0, 0, 0, 0.45);
            transition: all 0.3s;
            &:not(:last-child) {
              margin-right: 40px;
            }
          }
        }
        .copyright {
          color: rgba(0, 0, 0, 0.45);
          font-size: 14px;
        }
      }
    }
  }
</style>

<style scoped>

  .content {
    margin-left: 10px;
  }

  .el-row--flex {
    height: 730px;
    margin-top: calc((100vh - 800px) / 2);
  }

  .el-col:nth-child(3) {
    align-items: center;
    display: flex;
  }

  .title img {
    width: 293px;
    max-height: 60px;
    margin-top: 165px;
  }

  #wrapper {
    max-width: 1920px;
    margin: 0 auto
  }

  .layadmin-user-login-header {
    text-align: center
  }

  .layadmin-user-login-header h2 {
    margin-bottom:10px;
    /*font-weight: 300;*/
    font-size: 30px;
    /*color: #000*/
    color: rgba(0, 0, 0, .85);
    font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 600;
  }

  .layadmin-user-login-header p {
    font-weight: 300;
    color: #999
  }

  #left {
    float: left;
    width: 50%;
    position: relative;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #right {
    float: right;
    width: 50%;
    position: relative;
    background-size: cover;
    background-position: 50% 50%;
    background-image: url(~@/assets/firstbg.jpg);
    background-repeat: no-repeat
  }

  #right div {
    position: absolute;
    left: 50px;
    bottom: 40px;
    width: 450px
  }

  #right div h2 {
    font-size: 34px;
    line-height: 39px;
    color: white;
    margin: 0 0 15px 0;
    font-family: 'Tableau' !important;
    font-weight: normal !important
  }

  .layadmin-user-login-box {
    padding: 30px
  }

  #right div p {
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    width: 500px
  }

  .login-image {
    height: 365px;
    width: 567px;
    margin: auto;
    display: block;
  }

  .welcome {
    margin-top: 1px;
    margin-bottom: 20px;
    font-size: 17px;
    /*color: #5b5f66;*/
    color: #081C42;
    line-height: 14px;
    text-align: center;
  }

  .form, .btn {
    padding: 0;
    width: 443px;
    margin: auto;
  }

  .btn > .submit {
    /*border-radius: 70px;*/
    border-color: #081C42;
    background-color: #081C42;
  }

  .btn > .submit:hover {
    opacity: .8;
    filter: alpha(opacity=80);
    color: #fff
  }

  .btn > .submit:active {
    opacity: 1;
    filter: alpha(opacity=100)
  }

  .el-form-item:first-child {
    margin-top: 20px;
  }

  /deep/ .el-input__inner {
    border: 1px solid #d9d9d9;
    /*border-radius: 70px !important;*/
    background: #dcdfe6 !important;
    border-color: #dcdfe6 !important;
    /*谷歌浏览器默认填充的颜色无法替换，使用下列样式填充*/
    box-shadow: inset 0 0 0 1000px #ffffff !important;
  }

  .el-input, .el-button {
    width: 443px;
  }

  /deep/ .el-input__inner:focus {
    border: 1px solid  #081C42 !important;
  }

  .divider {
    border: 1px solid #f6f3f8;
    height: 480px;
    margin: 165px 0px;
  }

  body{
    background: #f0f2f5;
  }

  html, body, #left, #right, #wrapper {
    height: 100%
  }

  .form .el-input > .el-input__inner {
    border-radius: 0;
  }
</style>

